package com.woniuxy04;


public class Test02 {
    public static void main(String[] args) {
        Student s1 = new Student(1,"zs",11);
        Student s2 = new Student(1,"zs",11);
        System.out.println(s1);
        System.out.println(s2);
        System.out.println(s1==s2);
        //对象比较调用equals()方法，所有属性值都相同true
        System.out.println(s1.equals(s2));
        System.out.println(s1.equals("aaa"));
    }
}
